import math
# num=int(input("输入一个3位数的正整数，判断是否水仙花数："))
# high=num//100
# mid=(num-high*100)//10 #num//10%10
# low=num%10
# check=math.pow(i,3)+math.pow(j,3)+math.pow(k,3)==num
# if(check):
#     print(f"{num}是水仙花数")
# else:
#     print(f"{num}不是水仙花数")
#5x+3y+z/3=100
#x+y+z=100
# for x in range(0,20):
#     for y in range(0,33):
#         z=100-x-y
#         if(5*x+3*y+z/3==100):
#             print(f"{x},{y},{z}")
"""
from random import randint
money = 1000
while money > 0:
    print('你的总资产为:', money)
    needs_go_on = False
    while True:
        debt = int(input('请下注: '))
        if 0 < debt <= money:
            break
    first = randint(1, 6) + randint(1, 6)
    print('玩家摇出了%d点' % first)
    if first == 7 or first == 11:
        print('玩家胜!')
        money += debt
    elif first == 2 or first == 3 or first == 12:
        print('庄家胜!')
        money -= debt
    else:
        needs_go_on = True
    while needs_go_on:
        needs_go_on = False
        current = randint(1, 6) + randint(1, 6)
        print('玩家摇出了%d点' % current)
        if current == 7:
            print('庄家胜')
            money -= debt
        elif current == first:
            print('玩家胜')
            money += debt
        else:
            needs_go_on = True
print('你破产了, 游戏结束!')
"""
#前20位斐波那契数列
# n_2=1
# n_1=1
# for i in range(1,21):
#     if(i<3):
#         print(1,end=",")
#     else:
#         fb=n_2+n_1
#         print(fb,end=",")
#         n_2=n_1
#         n_1=fb
#2~9999的完美数
# import math
# for i in range(2,10000):
#     sum=0
#     for j in range(1,int(math.sqrt(i))+1):
#         if i%j==0:
#             sum+=j
#             #判断开方数之后的因数，也就是j的对称因数
#             if j>1 and j!=i/j:
#                 sum+=i/j
#     if sum==i:
#         print(i,end=",")
#100以内的素数
import math
for i in range(1,101):
    sqrtI=int(math.sqrt(i))
    flag=True
    for j in range(2,sqrtI+1):
        if i%j==0:
            flag=False
    if flag:
        print(i,end=",")